package org.xb.CoffeeDecorator;

/**
 * @Author
 * @Description
 * @Date created in 10:15 2023/12/7
 */
public class OrderCoffee implements Coffee{
    private int price;

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    /**
     * 点餐 一杯咖啡默认是
     * @return
     */
    @Override
    public int cost() {
        System.out.println("奶茶一杯价格是" + getPrice());
        return getPrice();
    }
}
